package cn.otrue.patienthealthmanager.bean;

import java.util.Date;

import com.lidroid.xutils.db.annotation.Id;

public class ChatModle {

	@Override
	public String toString() {
		return "ChatModle [chatId=" + chatId + ", inUser=" + inUser
				+ ", inName=" + inName + ", outUser=" + outUser + ", outName="
				+ outName + ", message=" + message + ", filePath=" + filePath
				+ ", chatType=" + chatType + ", createTime=" + createTime
				+ ", schedule=" + schedule + "]";
	}

	@Id
	private int chatId;
	private String inUser;
	private String inName;
	private String outUser;
	private String outName;
	private String message;
	private String filePath;
	private int chatType;

	private Date createTime;
	// 进度
	private int schedule;

	public ChatModle(String inUser, String inName, String outUser,
			String outName, String message, String filePath, int chatType,
			Date createTime, int schedule) {
		super();
		if (inUser.contains("@")) {
			inUser = inUser.substring(0, inUser.indexOf("@"));
		}
		if (outUser.contains("@")) {

			outUser = outUser.substring(0, outUser.indexOf("@"));
		}
		this.inUser = inUser;
		this.inName = inName;
		this.outUser = outUser;
		this.outName = outName;
		this.message = message;
		this.filePath = filePath;
		this.chatType = chatType;
		this.createTime = createTime;
		this.schedule = schedule;
	}

	public int getSchedule() {
		return schedule;
	}

	public void setSchedule(int schedule) {
		this.schedule = schedule;
	}

	public ChatModle() {
		super();

	}

	public String getInUser() {
		return inUser;
	}

	public void setInUser(String inUser) {
		this.inUser = inUser;
	}

	public String getInName() {
		return inName;
	}

	public void setInName(String inName) {
		this.inName = inName;
	}

	public String getOutUser() {
		return outUser;
	}

	public void setOutUser(String outUser) {
		this.outUser = outUser;
	}

	public String getOutName() {
		return outName;
	}

	public void setOutName(String outName) {
		this.outName = outName;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public int getChatType() {
		return chatType;
	}

	public void setChatType(int chatType) {
		this.chatType = chatType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
